function check_login() {
	var loginUsername = $('#login_username').val();
	var loginPassword = $('#login_password').val();
			
	if (loginUsername === '') {
		$('#<?php echo $this->config->item('site_accr'); ?>_login_error').html('<?php echo $aMessages['admin_login_enter_username']; ?>').show();
		return false;
	}
			
	if (loginPassword === '') {
		$('#<?php echo $this->config->item('site_accr'); ?>_login_error').html('<?php echo $aMessages['admin_login_enter_password']; ?>').show();
		return false;
	}

	$('#<?php echo $this->config->item('site_accr'); ?>_login_error').html('<?php echo $aMessages['admin_login_verifying_credentials']; ?>').show();
	return true;			
}


$(document).ready(
	function() {
		if ($('#<?php echo $this->config->item('site_accr'); ?>_login_error').html() != '') {
			$('#<?php echo $this->config->item('site_accr'); ?>_login_error').show();
		}
	}
);